package cn.mastor.service.impl;

import cn.mastor.domain.Dynami;
import cn.mastor.mapper.DynamiMapper;
import cn.mastor.service.IDynamiService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author whale
 * @since 2022-12-12
 */
@Service
public class DynamiServiceImpl extends ServiceImpl<DynamiMapper, Dynami> implements IDynamiService {

    @Override
    public List<Dynami> selectDynamicById(Integer id) {
        Wrapper<Dynami> wrapper = new EntityWrapper<>();
        wrapper.eq("uid",id);
        return selectList(wrapper);
    }
}
